﻿@model blacksoft.Models.Xperfil
@using blacksoft.Helpers
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutSeguridad.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Nuevo Perfil</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
                @Html.ValidationSummary(true)

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Nombre)
                    @Html.EditorFor(model => model.Nombre)
                    @Html.ValidationMessageFor(model => model.Nombre)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Descripcion)
                    @Html.EditorFor(model => model.Descripcion)
                    @Html.ValidationMessageFor(model => model.Descripcion)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Administracion)
                    @Html.EditorFor(model => model.Administracion)
                    @Html.ValidationMessageFor(model => model.Administracion)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Compras)
                    @Html.EditorFor(model => model.Compras)
                    @Html.ValidationMessageFor(model => model.Compras)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Ventas)
                    @Html.EditorFor(model => model.Ventas)
                    @Html.ValidationMessageFor(model => model.Ventas)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Seguridad)
                    @Html.EditorFor(model => model.Seguridad)
                    @Html.ValidationMessageFor(model => model.Seguridad)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Global)
                    @Html.EditorFor(model => model.Global)
                    @Html.ValidationMessageFor(model => model.Global)
                </div>
                <br />
                <div class="form-group">
                    <input type="submit" value="Registrar" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>


